.track-detail { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  height: 100%; 
  padding: 16px; 
  background: #1a1a1a;
  color: #fff;
}

/* 头部样式 */
.track-detail .td-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 16px; 
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.track-detail .td-header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-detail .td-sidebar-btn {
  background: transparent; 
  border: none; 
  color: #ccc; 
  cursor: pointer; 
  font-size: 16px;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.track-detail .td-sidebar-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.track-detail .td-back { 
  background: transparent; 
  border: none; 
  color: #ccc; 
  cursor: pointer; 
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.track-detail .td-back:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.track-detail .td-title { 
  margin: 0; 
  font-size: 1.4em; 
  line-height: 1.3; 
  color: #fff;
}

.track-detail .td-title-actions {
  display: flex;
  gap: 8px;
}

.track-detail .td-btn { 
  background: rgba(255,255,255,0.1); 
  border: 1px solid rgba(255,255,255,0.2); 
  color: #fff; 
  padding: 8px 12px; 
  border-radius: 6px; 
  cursor: pointer; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 14px;
}

.track-detail .td-btn:hover {
  background: rgba(255,255,255,0.15);
}

.track-detail .td-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.track-detail .td-btn.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.7;
  cursor: not-allowed;
}

.track-detail .btn-loading-spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-top: 1.5px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.track-detail .td-btn.active {
  background: rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
  color: #4ecdc4;
}

/* 内容区域 */
.track-detail .td-content {
  display: flex;
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

.track-detail .td-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

/* 封面区域 */
.track-detail .td-cover-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content:left;
  gap: 20px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
}

.track-detail .td-cover-wrap { 
  position: relative;
  width: 300px; 
  height: 300px; 
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.track-detail .td-cover-wrap:hover {
  transform: scale(1.02);
}

.track-detail .td-cover { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
}

.track-detail .td-cover-input {
  display: none;
}

.track-detail .td-cover-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.track-detail .td-cover-label:hover {
  background: rgba(0,0,0,0.9);
}

.track-detail .td-cover-label.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(0,0,0,0.6);
}

.track-detail .td-cover-label.disabled:hover {
  background: rgba(0,0,0,0.6);
}

/* 表单区域 */
.track-detail .td-form { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px; 
  background: rgba(255,255,255,0.05); 
  border: 1px solid rgba(255,255,255,0.1); 
  border-radius: 12px; 
  padding: 20px;
}

.track-detail .td-form-row { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.track-detail .td-form-row label { 
  color: #ccc; 
  font-size: 14px; 
  font-weight: 500;
}

.track-detail .td-form-row input { 
  background: rgba(255,255,255,0.1); 
  border: 1px solid rgba(255,255,255,0.2); 
  border-radius: 6px; 
  padding: 10px 12px; 
  color: #fff; 
  font-size: 14px;
  transition: all 0.2s ease;
}

.track-detail .td-form-row input:focus {
  outline: none;
  border-color: #4ecdc4;
  background: rgba(255,255,255,0.15);
}

.track-detail .td-form-row input::placeholder {
  color: rgba(255,255,255,0.5);
}

.track-detail .td-form-row input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255,255,255,0.05);
}

.track-detail .td-lyrics:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255,255,255,0.05);
}

/* 歌词区域 */
.track-detail .td-lyrics-wrap { 
  background: rgba(255,255,255,0.05); 
  border: 1px solid rgba(255,255,255,0.1); 
  border-radius: 12px; 
  padding: 20px;
}

.track-detail .td-lyrics { 
  width: 100%; 
  min-height: 200px; 
  white-space: pre-wrap; 
  background: rgba(255,255,255,0.08); 
  border: 1px solid rgba(255,255,255,0.2); 
  border-radius: 6px; 
  padding: 12px; 
  color: #fff; 
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

.track-detail .td-lyrics::placeholder {
  color: rgba(255,255,255,0.5);
}

/* 文件信息区域 - 重新设计 */
.track-detail .td-file-info {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.track-detail .td-file-info-header {
  background: rgba(78, 205, 196, 0.1);
  border-bottom: 1px solid rgba(78, 205, 196, 0.2);
  padding: 12px 16px;
}

.track-detail .td-file-info-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #4ecdc4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.track-detail .td-file-info-content {
  padding: 16px;
}

.track-detail .td-file-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.track-detail .td-file-info-item:last-child {
  border-bottom: none;
}

.track-detail .td-file-info-label {
  color: #ccc;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.track-detail .td-file-info-value {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  text-align: right;
  word-break: break-all;
  max-width: 200px;
  line-height: 1.3;
  white-space: nowrap;
}

/* 操作按钮 */
.track-detail .td-actions { 
  display: flex; 
  justify-content: center; 
  margin-top: 20px;
}

.track-detail .td-save-btn { 
  background: #4ecdc4; 
  border: none; 
  color: #fff; 
  padding: 12px 24px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 120px;
}

.track-detail .td-save-btn:hover {
  background: #45b8b0;
  transform: translateY(-1px);
}

.track-detail .td-save-btn:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
}

.track-detail .td-save-btn.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #666;
  cursor: not-allowed;
  transform: none;
}

.track-detail .save-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 在线搜索结果抽屉 */
.track-detail .td-drawer { 
  position: fixed; 
  top: 0; 
  right: 0; 
  width: 400px; 
  height: 100vh; 
  background: rgba(18,18,18,0.98); 
  border-left: 1px solid rgba(255,255,255,0.12); 
  box-shadow: -8px 0 24px rgba(0,0,0,0.4); 
  z-index: 10000; 
  display: flex; 
  flex-direction: column; 
}

.track-detail .td-drawer-mask { 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.4); 
  z-index: 9999; 
}

.track-detail .td-drawer-content {
  position: relative;
  z-index: 10000;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.track-detail .td-drawer-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px 20px; 
  border-bottom: 1px solid rgba(255,255,255,0.1); 
  background: rgba(255,255,255,0.05);
}

.track-detail .td-drawer-header h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  flex: 1;
}

.track-detail .td-drawer-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}

.track-detail .search-source {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.track-detail .search-source.cache {
  background: rgba(78, 205, 196, 0.2);
  color: #4ecdc4;
  border: 1px solid rgba(78, 205, 196, 0.3);
}

.track-detail .search-source.online {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.track-detail .td-drawer-close {
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-detail .td-drawer-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.track-detail .td-drawer-body { 
  padding: 20px; 
  overflow: auto; 
  flex: 1;
}

.track-detail .search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #aaa;
}

.track-detail .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 页面加载状态 - 浮动遮罩层 */
.floating-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 60px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  text-align: center;
  min-width: 300px;
}

.floating-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #4ecdc4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

.floating-loading-content p {
  margin: 0;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
}

/* 占位符样式 */
.td-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-radius: 12px;
  animation: pulse 2s ease-in-out infinite;
}

.td-input-placeholder {
  height: 40px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-radius: 6px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* 浮动Loading响应式设计 */
@media (max-width: 768px) {
  .floating-loading-content {
    padding: 30px 40px;
    min-width: 250px;
    margin: 20px;
  }
  
  .floating-loading-spinner {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
  }
  
  .floating-loading-content p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .floating-loading-content {
    padding: 24px 32px;
    min-width: 200px;
    margin: 16px;
  }
  
  .floating-loading-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
  }
  
  .floating-loading-content p {
    font-size: 13px;
  }
}

.track-detail .no-results {
  color: #aaa;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
}

.track-detail .no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.track-detail .no-results-tip {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}

.track-detail .search-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.track-detail .search-result-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.track-detail .search-result-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.track-detail .result-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-detail .result-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-detail .default-cover {
  font-size: 24px;
  color: #ccc;
}

.track-detail .result-info {
  flex: 1;
  min-width: 0;
}

.track-detail .result-title {
  font-weight: 600;
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-detail .result-artist {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-detail .result-album {
  color: #aaa;
  font-size: 13px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-detail .result-source {
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.track-detail .result-score {
  font-size: 12px;
  color: #007bff;
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .track-detail {
    padding: 12px;
  }
  
  .track-detail .td-header { 
    align-items: flex-start;
    gap: 12px;
  }
  
  .track-detail .td-header-buttons {
    gap: 8px;
  }
  
  .track-detail .td-sidebar-btn {
    padding: 6px;
    font-size: 14px;
  }
  
  .track-detail .td-back {
    padding: 6px 8px;
    font-size: 14px;
  }

  .track-detail .td-title-actions {
    width: 250px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  
  .track-detail .td-content {
    flex-direction: column;
  }
  
  .track-detail .td-cover-section {
    padding: 16px;
    gap: 16px;
    flex-direction: column;
  }
  
  .track-detail .td-cover-wrap { 
    width: 150px; 
    height: 150px; 
  }
  
  .track-detail .td-file-info {
    max-width: 100%;
  }
  
  .track-detail .td-file-info-content {
    padding: 12px;
  }
  
  .track-detail .td-file-info-item {
    padding: 6px 0;
  }
  
  .track-detail .td-file-info-label {
    font-size: 12px;
    min-width: 70px;
  }
  
  .track-detail .td-file-info-value {
    font-size: 12px;
    max-width: 150px;
  }
  
  .track-detail .td-form { 
    grid-template-columns: 1fr; 
    gap: 12px;
    padding: 16px;
  }
  
  .track-detail .td-drawer {
    width: 100%;
  }
  
  .track-detail .search-result-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .track-detail .result-info {
    text-align: center;
  }
  
  .track-detail .result-score {
    align-self: center;
  }
}



@media (max-width: 480px) {
  .track-detail {
    padding: 8px;
  }
  .track-detail .td-title{
    display: none;
  }
  
  .track-detail .td-header-buttons {
    gap: 6px;
  }
  
  .track-detail .td-sidebar-btn {
    padding: 5px;
    font-size: 12px;
  }
  
  .track-detail .td-back {
    padding: 5px 6px;
    font-size: 12px;
  }
  
  .track-detail .td-cover-section {
    padding: 12px;
    gap: 12px;
  }
  
  .track-detail .td-cover-wrap { 
    width: 120px; 
    height: 120px; 
  }
  
  .track-detail .td-file-info-header {
    padding: 10px 12px;
  }
  
  .track-detail .td-file-info-header h4 {
    font-size: 13px;
  }
  
  .track-detail .td-file-info-content {
    padding: 10px;
  }
  
  .track-detail .td-file-info-item {
    padding: 5px 0;
  }
  
  .track-detail .td-file-info-label {
    font-size: 11px;
    min-width: 60px;
  }
  
  .track-detail .td-file-info-value {
    font-size: 11px;
    max-width: 300px;
  }
  
  .track-detail .td-form, .track-detail .td-lyrics-wrap {
    padding: 12px;
  }
  
  .track-detail .td-save-btn {
    width: 100%;
    padding: 14px 20px;
  }
  
  .track-detail .td-title-actions {
    gap: 4px;
  }
  
  .track-detail .td-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* Toast弹窗样式 */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  animation: slideInRight 0.3s ease-out;
}

.toast.success {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  border: 1px solid rgba(78, 205, 196, 0.3);
}

.toast.error {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  min-width: 300px;
  max-width: 400px;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-message {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast.hiding {
  animation: slideOutRight 0.3s ease-in forwards;
}

/* Toast响应式设计 */
@media (max-width: 768px) {
  .toast {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .toast-content {
    min-width: auto;
    max-width: none;
    padding: 14px 16px;
  }
  
  .toast-message {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .toast {
    top: 5px;
    right: 5px;
    left: 5px;
  }
  
  .toast-content {
    padding: 12px 14px;
    gap: 10px;
  }
  
  .toast-icon {
    font-size: 18px;
  }
  
  .toast-message {
    font-size: 12px;
  }
}


